package com.lichuang.dedao.curriculum.controller;


import com.lichuang.dedao.curriculum.entity.Teacher;
import com.lichuang.dedao.curriculum.service.impl.TeacherServiceImpl;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 老师 前端控制器
 * </p>
 *
 * @author xiaosong
 * @since 2019-07-25
 */
@RestController
@RequestMapping("//teacher")
public class TeacherController {

    @Autowired
    private TeacherServiceImpl teacherService;

    @RequestMapping("/getTeacherById")
    public Teacher getTeacherById(@RequestParam("id")Integer id){
        return teacherService.getTeacherById(id);
    }


}
